package com.appbase.custom.constant;

import android.text.TextUtils;

import com.appbase.custom.base.DeviceNoticeBean;


public class DeviceNoticeConstants {
    public static final String CLOUD_SERVICE_SIM = "CLOUD_SERVICE_SIM";
    public static final String CLOUD_SERVICE_CAR = "CLOUD_SERVICE_CAR";
    public static final String CLOUD_SERVICE_STORAGE = "CLOUD_SERVICE_STORAGE";
    public static final String AUTHORIZATION = "authorization";
    public static final String CLOUD_SERVICE_AI = "CLOUD_SERVICE_AI";

    public static boolean is4G(DeviceNoticeBean bean){
        return bean!=null&& TextUtils.equals(bean.getType(),CLOUD_SERVICE_SIM);
    }
    public static boolean isCar(DeviceNoticeBean bean){
        return bean!=null&& TextUtils.equals(bean.getType(),CLOUD_SERVICE_CAR);
    }
    public static boolean isCloudStorage(DeviceNoticeBean bean){
        return bean!=null&& TextUtils.equals(bean.getType(),CLOUD_SERVICE_STORAGE);
    }
    public static boolean isCloudAI(DeviceNoticeBean bean){
        return bean!=null&& TextUtils.equals(bean.getType(),CLOUD_SERVICE_AI);
    }
    public static boolean isAuthorization(DeviceNoticeBean bean){
        return bean!=null&& TextUtils.equals(bean.getType(),AUTHORIZATION);
    }
}
